package com.aaa.vegetablemarketexpress.dao;

import com.aaa.vegetablemarketexpress.entity.Customer;
import com.aaa.vegetablemarketexpress.entity.ShopCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @FileName: ShopCustomerDao
 * @Description:
 * @Author: qxh
 * @CreateTime: 2025/9/12 9:06
 * @Version: 1.0.0
 */
public interface ShopCustomerDao {
    /**
     * @Description: 添加店铺和顾客关系
     * @Param: [shopCustomer]
     * @return: int
     * @Author: qxh
     * @CreateTime: 2025/9/12 9:06
     */
    int insertShopCustomer(ShopCustomer shopCustomer);
    /**
     * @Description: 删除店铺和顾客关系,根据店铺id
     * @Param: [shopId]
     * @return: int
     * @Author: qxh
     * @CreateTime: 2025/9/12 9:06
     */
    int deleteShopCustomerByShopId (Long shopId);
    /**
     * 查询店铺客户列表
     * @param shopId 店铺ID
     * @return 客户列表
     */
    List<ShopCustomer> selectShopCustomerList(@Param("shopId") Long shopId);
}
